From 16c820c2f05dfa83d4a2ec0f84e55ebf106ca628 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 9 Apr 2020 17:17:58 -0400 Subject: [PATCH] Small documentation tweaks Update the docs for GtkWidget:can-focus and :focus-on-click. --- gtk/gtkwidget.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 706fc5f0be..50cdc28caf 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -974,6 +974,12 @@ gtk_widget_class_init (GtkWidgetClass *klass) TRUE, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); + /** + * GtkWidget:can-focus: + * + * Whether the widget or any of its descendents can accept + * the input focus. + */ widget_props[PROP_CAN_FOCUS] = g_param_spec_boolean ("can-focus", P_("Can focus"), @@ -1001,9 +1007,6 @@ gtk_widget_class_init (GtkWidgetClass *klass) * Whether the widget should grab focus when it is clicked with the mouse. * * This property is only relevant for widgets that can take focus. - * - * Before 3.20, several widgets (GtkButton, GtkFileChooserButton, - * GtkComboBox) implemented this property individually. */ widget_props[PROP_FOCUS_ON_CLICK] = g_param_spec_boolean ("focus-on-click", -- 2.30.2